package org.thirdHero.core.enums;

public enum ResultEnum {
	UNKNOWN_ERROR(-1,"未知错误"),
	SUCCESS(0,"成功"),
	ERROR(1,"失败"),
	ERROR_PARAM(40005,"参数错误"),
	ERROR_SESSION_USER(40003,"用户信息异常"),
	ERROR_TOKEN_TIME_OUT(40002,"TOKEN超时"),
	ERROR_TOKEN_EMPTY(40001,"用户未登录")
	;
	
	private Integer code;
	private String msg;
	
	ResultEnum(Integer code,String msg) {
		this.code = code;
		this.msg = msg;
	}
 
	public Integer getCode() {
		return code;
	}
 
	public String getMsg() {
		return msg;
	}
}